package com.cph.contentcenter.controller.content;

import com.cph.contentcenter.domain.dto.content.ShareDto;
import com.cph.contentcenter.service.content.ShareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ShareController
 * @Description TODO
 * @Author cph
 * @Date 2020/9/25 19:00
 * @Version 1.0
 */
@RequestMapping("/shares")
@RestController
public class ShareController {

    @Autowired
    private ShareService shareService;
    @GetMapping("/{id}")
    public ShareDto findById (@PathVariable Integer id){
        return shareService.findById(id);
    }
}
